/********************************************************************
  A SymbolBrowser plugin for JuffEd editor.

  Copyright: 2010 Aleksander Sokoloff <asokol@mail.ru>


  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License.
  version 2 as published by the Free Software Foundation.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation,
  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*********************************************************************/


#ifndef KATE_SYMBOLBROWSER_VIEW_H
#define KATE_SYMBOLBROWSER_VIEW_H

#include <kate/plugin.h>
#include <kate/mainwindow.h>
#include <QList>

class KateSymbolBrowserPlugin;
class QListWidget;
class SymbolBrowserView;
class KateDocumentParser;

class KateSymbolBrowserView : public Kate::PluginView, public KXMLGUIClient
{
Q_OBJECT

public:
    explicit KateSymbolBrowserView(KateSymbolBrowserPlugin *plugin, Kate::MainWindow *mainWindow);
    ~KateSymbolBrowserView();

  //void readSessionConfig (KConfigBase* config, const QString& groupPrefix);
  //void writeSessionConfig (KConfigBase* config, const QString& groupPrefix);

private:
    KateSymbolBrowserPlugin *mPlugin;
    QWidget *mMainView;
    SymbolBrowserView *mSymbolsView;
    QList<KateDocumentParser *> mParsers;

public slots:
    void globalSettingsChanged();

private slots:
    void createParser(KTextEditor::View *view);
    void activateParser();
    void parserDestroyed(QObject * obj);
};


#endif // KATE_SYMBOLBROWSER_VIEW_H



